'''
Created on 26.02.2012

@author: myaut
'''

import sys

sys.path.append('../../lib')

from salsa.coresvc import CoreClient
from salsa.service import Client
from salsa.service.repo import Repository

c = CoreClient()
repo = Client('svc.repo', Repository)

try:
    # print repo.create_file('test.cpp', '', 'tst', 'tmp')
    
    # g = repo.search_file('test.cpp')
    
    g = repo.destroy_file('44b74c8bdb0d9dd3bf620004b47bd21fd1335c1e')
finally:
    repo.stop()
    c.stop()